home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 June: Reference Library / Dev.CD Jun 96 RL / Dev.CD Jun 96 RL.toast / Technical Documentation / develop / develop Issue 23 / develop Issue 23 code / ProjectDrag 1.1b8 / Sources / ProjectDrag Sources / CheckIn.r < prev    next >
Encoding:
Text File  |  1995-09-07  |  5.5 KB  |  202 lines  |  [TEXT/MPS ]

  1. /* CheckIn.r: CheckIn applet resources for ProjectDrag
  2.  *
  3.  * A set of applets for drag and drop source control by Tim Maroney.
  4.  * See develop, issue 23 for details.
  5.  *
  6.  * Built on DropShell by Leonard Rosenthol, Stephan Somogyi, and Marshall Clow,
  7.  * and using the MoreFiles utilities by Jim Luther.
  8.  *
  9.  * This software is free, but don't modify and redistribute it without
  10.  * changing the status window to indicate your name and your changes!
  11.  */
  12.  
  13. #define SystemSevenOrLater 1
  14. #include "Types.r"
  15. #include "SysTypes.r"
  16. #include "BalloonTypes.r"
  17. #include "AEUserTermTypes.r"
  18.  
  19. include "CheckIn.rsrc";
  20.  
  21. /* First thing we need is the Finder Help Balloon */
  22. resource 'hfdr' (-5696) {
  23.     HelpMgrVersion, 0, 0, 0,
  24.     {
  25.         HMStringItem {
  26.             "Drag a source file onto this icon, and CheckIn will check it in. "
  27.             "You can also drag a source folder: all checked-out or MRO files "
  28.             "in that folder will be checked in."
  29.         },
  30.     }
  31. };
  32.  
  33.  
  34.  
  35. /* Menus & Menu Help Resources */
  36. resource 'MENU' (128, "Apple") { 128, textMenuProc, 0x7FFFFFFD, enabled, apple, 
  37.     {    /* array: 2 elements */
  38.         /* [1] */    "About CheckIn…", noIcon, noKey, noMark, plain,
  39.         /* [2] */    "-", noIcon, noKey, noMark, plain
  40.     }
  41. };
  42.  
  43. resource 'MENU' (129, "File") { 129, textMenuProc, allEnabled, enabled, "File", 
  44.     {    /* array: 2 elements */
  45.         /* [1] */    "Check File In…",    noIcon, "O", noMark, plain,
  46.         /* [2] */    "Quit",         noIcon, "Q", noMark, plain
  47.     }
  48. };
  49.  
  50. resource 'DITL' (128, purgeable) {
  51.     {    /* array DITLarray: 3 elements */
  52.         /* [1] */ {97, 198, 117, 270}, Button { enabled, "OK" }, 
  53.         /* [2] */ {8, 8, 87, 271}, StaticText { disabled,
  54.             "CheckIn - ProjectDrag's applet for checking files in. By Tim Maroney. " },
  55.         /* [3] */ {0, 0, 0, 0}, HelpItem { disabled, HMScanhdlg { 1 } } 
  56.     }
  57. };
  58.  
  59. /* Here are the STR#'s that the Help text is stored in! */
  60. resource 'STR#' (128,purgeable) {    /* help items for Apple Menu */
  61.     { /* array StringArray: 3 elements */
  62.         /* [1] */     "Everything you always wanted to know about CheckIn, but were afraid to ask",
  63.         /* [2] */     "Click here to dismiss this dialog.",
  64.         /* [3] */     "This text describes the product, its author, and why!"
  65.     }
  66. };
  67.  
  68. resource 'STR#' (129,purgeable) {    /* help items for File Menu */
  69.     { /* array StringArray: ? elements */
  70.         /* [1] */    "Use this menu to check a file in and to exit CheckIn.",
  71.         /* [2] */     "Use this menu to select a file and to exit CheckIn. "
  72.                       "This menu is unavailable now.",
  73.         /* [3] */     "Use this menu to check a file in and to exit CheckIn. "
  74.                     "This menu is unavailable until you respond to the alert box or dialog box.",
  75.         /* [4] */     "This command is unavailable until you respond to the alert box or dialog box.",
  76.         /* [5] */     "Use this command to check a file in.",
  77.         /* [6] */     "Use this command to check a file in. "
  78.                     "Not available now for some strange reason.",
  79.         /* [7] */     "Use this command to exit CheckIn.",
  80.         /* [8] */     "Use this command to exit CheckIn. "
  81.                     "Not available now for some strange reason."
  82.     }
  83. };
  84.  
  85. resource 'STR#' (200, purgeable) {    /* help info for the Error Dialog */
  86.     {    /* array StringArray: 3 elements */
  87.         /* [1] */    "Click here to dismiss this dialog.",
  88.         /* [2] */    "This text describes the error that occured.",
  89.         /* [3] */    "This error ID gives more specific details of the error."
  90.     }
  91. };
  92.  
  93. resource 'STR#' (2001, purgeable) {    /* progress info */
  94.     {    /* array StringArray: 1 element */
  95.         /* [1] */    "checking in “<1>”",
  96.         /* [2] */    "inspecting “<1>”",
  97.         /* [3] */    "adding “<1>” to the project",
  98.     }
  99. };
  100.  
  101. resource 'hmnu' (129, purgeable) {    /* File */
  102.     HelpMgrVersion, 0, 0, 0,
  103.     HMSkipItem {    /* no missing items */    },
  104.     {    /* array HMenuArray: 4 elements */
  105.         HMStringResItem {    /* Menu Title */
  106.             129, 1,
  107.             129, 2,
  108.             129, 3,
  109.             129, 4
  110.         },
  111.         HMStringResItem {    /* Open File… */
  112.             129, 5,
  113.             129, 6,
  114.             0, 0,
  115.             0, 0
  116.         },
  117.         HMStringResItem {    /* Quit */
  118.             129, 7,
  119.             129, 8,
  120.             0, 0,
  121.             0, 0
  122.         },
  123.     }
  124. };
  125.  
  126. resource 'BNDL' (128, purgeable) {
  127.     'pdci',
  128.     0,
  129.     {    /* array TypeArray: 2 elements */
  130.         /* [1] */
  131.         'FREF',
  132.         {    /* array IDArray: 2 elements */
  133.             /* [1] */ 0, 128,
  134.             /* [2] */ 1, 129,
  135.             /* [3] */ 2, 130
  136.         },
  137.         /* [2] */
  138.         'ICN#',
  139.         {    /* array IDArray: 2 elements */
  140.             /* [1] */ 0, 128,
  141.             /* [2] */ 1, 0,
  142.             /* [3] */ 2, 0
  143.         }
  144.     }
  145. };
  146.  
  147. data 'pdci' (0) {
  148.     "CheckIn - Free software by Tim Maroney!"
  149. };
  150.  
  151. resource 'FREF' (128) { 'APPL', 0, "" }; 
  152. resource 'FREF' (129) { 'fold', 1, "" }; 
  153. resource 'FREF' (130) { '****', 2, "" }; 
  154.  
  155.  
  156. /*
  157.     This is the KEY resource in supporting AEVTs - it is used by scripting/macro
  158.     systems such as Control Tower & QuicKeys in determing what events an application
  159.     supports.
  160.     
  161.     In this one, we simply tell it we support the required events, since that is all
  162.     we do.  If you add additional events, you MUST consult the AETE documentation
  163.     distributed by Apple.  Make sure you find the RELEASE NOTES, since this resource
  164.     has undergone a NUMBER of chanes.
  165. */
  166. resource 'aete' (0, "Apple Events Terminology") {
  167.  
  168.     0x00,            /* major version number in BCD */
  169.     0x90,            /* minor version number in BCD. From 7/9/91 version of AEUT docs */
  170.     english,        /* descriptions are in english */
  171.     roman,            /* use roman language script system */
  172.     
  173.     {    /* array Suites: 1 elements */
  174.     
  175.         /*******************************************************
  176.         [1] -- The part that show we do the required AppleEvents
  177.         *******************************************************/
  178.  
  179.         "Required Suite",
  180.         "Events that every application should support",
  181.         'reqd',
  182.         1,            /* suite level */
  183.         1,            /* suite version */
  184.         
  185.         {
  186.             /* array Events: 0 elements */
  187.         },
  188.         
  189.         {
  190.             /* array Classes: 0 elements */
  191.         },
  192.         
  193.         {
  194.             /* array ComparisonOps: 0 elements */
  195.         },
  196.         
  197.         {
  198.             /* array Enumerations: 0 elements */
  199.         },
  200.     }
  201. };
  202.